# -*- coding: UTF-8 -*-
# @Project ：luffycity 
# @File    ：1.案例.py
# @Author  ：于金龙
# @IDE     ：PyCharm 
# @Date    ：2024/4/10 13:23
import requests


class Download(object):
    def __init__(self, folder_path):
        self.folder_path = folder_path
# 不需要参数的传递
    @staticmethod
    def dowload_dou_yin():
        response = requests.get('https://music.163.com')
        with open("music.163.com", 'wb') as f:
            f.write(response.content)
# 需要传输参数
    def download_dou_yin2(self):
        response = requests.get(self.folder_path)
        with open("music.163.com", 'wb') as f:
            f.write(response.content)


obj = Download("video")
